import 'dart:convert';
import 'package:dio/dio.dart';
import 'package:cookie_jar/cookie_jar.dart';
import 'package:dio_cookie_manager/dio_cookie_manager.dart';
import './client_dio.dart';
var dio=Dio();
void main() async {
  print("main begin============");
  //dio.interceptors..add(CookieManager(CookieJar()))..add(LogInterceptor());
  dio.interceptors..add(CookieManager(CookieJar()));
  login("马红权", "333333", (r) {
    var res=json.decode(r);
    if(res["success"]){
      items({"limit":10}, (r) {
          var res=json.decode(r);
          print("========");
          print(res);
      },(){});
    }
  },(){});
}